package com.tubi.maipiao3;

public class demo {
    public static void main(String[] args) {
        Ticket ticket = new Ticket();
        Thread t1 = new Thread(ticket,"1");
        Thread t2 = new Thread(ticket,"2");
        Thread t3 = new Thread(ticket,"3");
//        t1.setName("窗口一");
//        t2.setName("窗口二");
//        t3.setName("窗口三");
        t1.start();
        t2.start();
        t3.start();
    }
}
